package com.syg.cycle;

import org.springframework.beans.factory.annotation.Lookup;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author ps
 */
@Component
@Scope(value = BeanDefinition.SCOPE_PROTOTYPE)
public class CycleA {

    @Resource
    public CycleB cycleB;

    @Lookup
    public CycleB getCycleB() {
        return cycleB;
    }

    public void setCycleB(CycleB cycleB) {
        this.cycleB = cycleB;
    }
}
